import 'package:flutter/material.dart';
import 'package:mandoby/core/app_export.dart';

import '../../../../core/utils/app_colors.dart';

class SpecialistTextRow extends StatelessWidget {
  const SpecialistTextRow({
    super.key, required this.txt, required this.color,
  });
  final String txt;
  final Color color;

  @override
  Widget build(BuildContext context) {

    return ListTile(
      horizontalTitleGap: 0,
      minLeadingWidth: 20.w,
      contentPadding: EdgeInsets.symmetric(horizontal: 16.w),
      dense: true,
      leading: CircleAvatar(
        backgroundColor: color,
        radius: 4.h,
      ),
      title: Text(
        txt,style: CustomTextStyles.font16black66800.copyWith(
          color: AppColors.black900
      ),

      ),
    );
    return Row(
      children: [
        5.ws,
        CircleAvatar(
          backgroundColor: color,
          radius: 7.h,
        ),
        5.ws,
        Text(
          txt,style: CustomTextStyles.font16black66800.copyWith(
            color: AppColors.black900
        ),

        ),
      ],
    );
  }
}
